package com.quiz.bis.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 题目分类视图类
 * @author ahuan
 */
@Data
@TableName("question_categories")
@EqualsAndHashCode(callSuper = true)
public class QuestionCategoryVo extends BaseModel {
    @TableId(type = IdType.AUTO)
    private String id;
    private String name;
    private String code;
    private String parentId;
    private String parentName;
    private String levelPath;
    private Integer isKnowledge;
    private Integer sort;

    @TableField(exist = false)
    private List<QuestionCategoryVo> children;
}